package animator.phantom.gui;

/*
    Copyright Janne Liljeblad 2006,2007,2008

    This file is part of Phantom2D.

    Phantom2D is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Phantom2D is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Phantom2D.  If not, see <http://www.gnu.org/licenses/>.
*/

import java.awt.Toolkit;
import java.awt.Dimension;

//--- Draw params for AninmatorFrame
//--- I think I hear something...is it?...yes, it's baby Jeesus crying...
public class AnimFrameGUIParams
{
	//--- FRAME DRAW PARAMS
	public static int OUT_BORDER_WIDTH = 10;
	public static int MID_STRIP_WIDTH = 0;
	public static int BUTTONS_AND_MENU_HEIGHT = 50;

	//--- editors tab panel
	public static int TAB_PANEL_BORDER_WIDTH = 3;

	//--- Vertical positiopn slider
	public static int VERTICAL_POS_SLIDER_WIDTH = 140;

	//--- TIME EDITORS DRAW PARAMS
	//--- don't ask
	public static int TE_ROW_HEIGHT = 22;
	public static int TE_LEFT_COLUMN_WIDTH = 180;
	private static int TE_RIGHT_COLUMN_INSET = 55;
	public static int TE_SMALL_WINDOW_INSET = 315;
	public static int TE_BOTTOM_STRIP_HEIGHT = 23;
	public static int TE_SCALE_DISPLAY_HEIGHT = 22;
	public static int TE_TOP_STRIP_HEIGHT = 32;
	public static int TE_FIXED_ROWS_HEIGHT = 	TE_TOP_STRIP_HEIGHT + 
							TE_SCALE_DISPLAY_HEIGHT +
							TE_BOTTOM_STRIP_HEIGHT;
	public static int TE_HEIGHT_PAD = 25;
	public static int TE_WIDTH_PAD = 0;
	//--- PREVIEW DRAW PARAMS
	public static int PREVIEW_WIDTH_PAD = 40;
	public static int PREVIEW_HEIGHT = AnimatorFrameLayout.MID_Y;

	//--- VIEW EDITOR
	public static int VIEW_EDITOR_WIDTH_PAD = -20;
	public static int VIEW_EDITOR_HEIGHT = AnimatorFrameLayout.MID_Y -40;

	//--- Calculates right column based on screen size.
	public static int getTimeEditRightColWidth()
	{
		return Toolkit.getDefaultToolkit().getScreenSize().width
			- TE_SMALL_WINDOW_INSET
			- TE_LEFT_COLUMN_WIDTH
			- TE_RIGHT_COLUMN_INSET;
	}

}//end class




